* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL - FUENTE GEORGIA */
body, p, h1, h2, h3, a, span, li, button, input, .menu a, .texto-escalera p, .btn-magico, .titulo-momentos, .decoracion-momentos, .historia-texto p, .lista-pasos span, .carousel-arrow, .newsletter h2, .social-item p, .angel, .escalera {
    font-family: Georgia, "Times New Roman", Times, serif;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    padding-top: 90px;
}

/* HEADER */
header {
    height: 100vh;
    background-image: url("../recursos/Cielo brillante con estrellas fugaces.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -180px;
    padding-top: 180px;
    position: relative;
    overflow: hidden;
}

/* MENÚ */
.menu {
    position: fixed;   /* cambiado */
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0px 60px;
    background: #ACEFF8;

    z-index: 1000;
}

.logo {
    width: 450px;
    height: auto;
    margin-top: -20px;
}

.links {
    display: flex;
    gap: 60px;
    margin-left: 360px;
}

.menu a {
    text-decoration: none;
    color: #064269;
    font-weight: 600;
    font-size: 29px;
    transition: color 0.3s ease;
}

.menu a:hover {
    text-decoration: none;
    color: #E40E1A; /* Azul brillante */
}

.texto-header {
    position: absolute;
    left: 130px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 10;
}

.texto-header h1 {
    font-size: 105px;
    line-height: 1.2;
    color: #0b2c4a;
}

.texto-header span {
    color: #d10000;
    font-size: 140px;
    font-weight: bold;
}

.sociales {
    display: flex;
    gap: 15px;
}

.icono {
    width: 60px;
    height: 60px;
    fill: #d10000;
    cursor: pointer;
}

#ingles {
    width: 60px;
    height: 60px;
    fill: #00406A;
    cursor: pointer;
}

.icono:hover {
    fill: #ff3b3b;
}

h2 {
    font-size: 90px;
    color: #E40E1A;
    text-align: left;
}

/* SECCIÓN HISTORIA */
.historia {
    background-color: #ffffff;
    padding: 10px 100px;
    margin-left: 5%;
}

.historia-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.historia-texto {
    width: 55%;
    margin-top: 50px;
}

.historia-texto h2 {
    font-size: 110px;
    color: #E40E1A;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: bold;
}

.historia-texto p {
    font-size: 37px;
    line-height: 1.4;
    color: #00416C;
    margin: 0;
    padding: 0;
    text-align: justify;
    letter-spacing: -0.01em;
}

.historia-imagen {
    width: 35%;
    position: relative;
    
}

.certificado {
    margin-top: 30px;
    width: 100%;
    border: 6px solid #ACEFF8;
    display: block;
        border-radius: 15px;
}

.nube-borde {
    position: absolute;
    top: 37%;  /* antes 35% - ahora más arriba */
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* SECCIÓN GALERÍA */
.galeria {
    position: relative;
    padding: 120px 0;
    background: white;
    overflow: hidden;
}

.fondo-azul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #cfeaf1;
    z-index: 0;
}

.galeria-contenedor {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.galeria-contenedor img {
    width: 530px;
    height: 700px;
    object-fit: cover;
    border-radius: 15px;
}

/* SECCIÓN COMO FUNCIONA */
.como-funciona {
    background-image: url("../recursos/marcoa.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 140px 100px;
    min-height: 1000px;
}

.como-contenedor {
    display: flex;
    gap: 100px;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 20px;
}

.como-imagen {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.como-imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 6px solid #5aa6d6;
    border-radius: 20px;
}

.como-derecha {
    width: 62%;
    margin-left: 100px;
    margin-top: 60px;
}

.como-derecha h3 {
    font-size: 55px;
    margin-bottom: 60px;
    color: #1c2b39;
    font-weight: 800;
}

.lista-pasos {
    list-style: none;
    padding: 0;
}

.lista-pasos li {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
}

.icono-paso {
    width: 75px;
    height: 75px;
    object-fit: contain;
    flex-shrink: 0;
}

.lista-pasos span {
    font-size: 36px;
    line-height: 1.3;
    color: #1c2b39;
    font-weight: 700;
}

/* SECCIÓN NUBES ESCALERA */
.nubesescalera {
    position: relative;
    background-image: url("/recursos/cielo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0;
    overflow: hidden;
}

.contenido-escalera {
    position: relative;
    width: 100%;
    height: 900px;
}

.escalera {
    position: absolute;
    left: 0px;   
    bottom: -145px;
    width: 70%;
}

.angel {
    position: absolute;
    left: 47%;
    top: -180px;
    width: 45%;
}

.texto-escalera {
    position: absolute;
    right: 15%;
    top: 590px;
    max-width: 700px;
    text-align: center;
}

.texto-escalera p {
    font-size: 45px;
    font-weight: 800;
    color: #0b2c4a;
    line-height: 1.2;
    margin-bottom: 25px;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
}

.btn-magico {
    background-color: #e31818;
    color: white;
    padding: 22px 45px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    margin: 0 auto;
       transition: transform 0.3s ease, background-color 0.3s ease;
}


.btn-magico:hover {
    background-color: #ff3b3b;
    transform: scale(1.05);
}


.nube-borde2 {
    position: absolute;
    top: 48%;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* ===== SECCIÓN MOMENTOS ESPECIALES ===== */
.momentos-especiales {
    background-color: #fdf4e8;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.titulo-momentos {
    font-size: 60px;
    font-weight: 800;
    color: #0b2c4a;
    margin-bottom: 20px;
    text-align: center;
}

.decoracion-momentos {
    font-size: 40px;
    color: #E40E1A;
    margin-bottom: 50px;
    letter-spacing: 15px;
    text-align: center;
}

/* CONTENEDOR PRINCIPAL CON FLEXBOX PARA FLECHAS A LOS LADOS */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FLECHAS PERSONALIZADAS - CÍRCULOS ROJOS */
.carousel-arrow {
    width: 80px;
    height: 80px;
    background-color: #E40E1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 50px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    transition: background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-arrow:hover {
    background-color: #c10f0f;
}

/* CARRUSEL DE BOOTSTRAP - OCUPA EL CENTRO */
#carouselAngel {
    flex: 1;
    min-width: 0;
    max-width: none;
    width: auto;
}

/* IMÁGENES DEL CARRUSEL - MÁS LARGAS */
.carousel-item img {
    height: 800px;
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* OCULTAR LAS FLECHAS ORIGINALES DE BOOTSTRAP */
#carouselAngel .carousel-control-prev,
#carouselAngel .carousel-control-next {
    display: none !important;
}

.nube-borde3 {
    position: absolute;
    top: 43%;
    left: 0;
    width: 70%;
    pointer-events: none;
}

/* FOOTER */
footer {
    background-color: #ACEFF8;
    padding: 100px 120px;
    position: relative;
    width: 100%;
}

.footer-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* MUNDO */
.mundo {
    width: 50%;
}

.imagen-mundo {
    width: 100%;
    max-width: 900px;
    margin-top: -10%;
}

/* COLUMNA DERECHA */
.columna-derecha {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 15%;
}

/* NEWSLETTER */
.newsletter h2 {
    font-size: 58px;
    color: #0b2c4a;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold; 
}

.newsletter form {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 25px 50px;
    border-radius: 30px;
    border: none;
    width: 500px;
    font-size: 20px;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.newsletter .btn {
    background-color: #e10600;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    font-family: Georgia, "Times New Roman", Times, serif;
    transition: background-color 0.3s;
}

.newsletter .btn:hover {
    background-color: #b30000;
}

/* REDES VERTICALES */
.sociales-footer {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-item p {
    font-size: 22px;
    color: #0b2c4a;
    font-weight: 600;
}

#azul {
    fill: #00406A;
}

/* LOGO */
.logo-footer-contenedor {
    position: absolute;
    right: 40px;
    bottom: 40px;
}

.logo-footer {
    width: 660px;
    max-width: 100%;
}


    

/* ===== MEDIA QUERY PARA 1080p ===== */
@media (min-width: 1070px) and (max-width: 1920px) {
    /* HEADER */
    header {
        height: 100vh;
        margin-top: -120px;
        padding-top: 120px;
    }

    .menu {
        padding: 0px 40px;
    }

    .logo {
        width: 300px;
        margin-top: -10px;
    }

    .links {
        gap: 40px;
        margin-left: 200px;
    }

    .menu a {
        font-size: 20px;
    }

    .texto-header {
        left: 80px;
    }

    .texto-header h1 {
        font-size: 70px;
    }

    .texto-header span {
        font-size: 90px;
    }

    .icono, #ingles {
        width: 45px;
        height: 45px;
    }
    /* HISTORIA */
    .historia {
        padding: 10px 60px;
    }

    .historia-texto h2 {
        margin-top: 40px;
        font-size: 60px;
    }

    .historia-texto p {
        font-size: 25px;
         margin-top: 20px;
        
    }

    .historia-imagen {
        width: 40%;
    }

    .nube-borde {
    width: 100%;           /* Ancho relativo al contenedor */
    top: 80%;             /* Posición vertical */
         /* Si quieres más transparencia */
}
    

    /* GALERÍA */
    .galeria {
        padding: 80px 0;
    }

    .galeria-contenedor {
        gap: 50px;
    }

    .galeria-contenedor img {
        width: 430px;
        height: 600px;
    }

    /* COMO FUNCIONA */
    .como-funciona {
        padding: 100px 60px;
        min-height: 800px;
    }

    .como-contenedor {
        gap: 60px;
    }

    .como-derecha h3 {
        font-size: 45px;
        margin-bottom: 40px;
    }

    .lista-pasos span {
        font-size: 28px;
    }

    .icono-paso {
        width: 60px;
        height: 60px;
    }

    .lista-pasos li {
        gap: 20px;
        margin-bottom: 40px;
    }

    /* ESCALERA */
    .nubesescalera {
        padding: 100px 0;
    }

    .contenido-escalera {
        height: 700px;
    }

    .escalera {
        width: 80%;
        bottom: -100px;
    }

    .angel {
        width: 50%;
        left: 45%;
        top: -120px;
    }

    .texto-escalera {
        right: 10%;
        top: 450px;
        max-width: 550px;
    }

    .texto-escalera p {
        font-size: 35px;
    }

    .btn-magico {
        padding: 18px 40px;
        font-size: 22px;
    }

    /* MOMENTOS ESPECIALES */
    .momentos-especiales {
        padding: 80px 0;
    }

    .titulo-momentos {
        font-size: 48px;
    }

    .decoracion-momentos {
        font-size: 32px;
        letter-spacing: 10px;
        margin-bottom: 40px;
    }

    .carousel-wrapper {
        gap: 20px;
        max-width: 1200px;
    }

    .carousel-arrow {
        width: 60px;
        height: 60px;
        font-size: 40px;
    }

    .carousel-item img {
        height: 600px;
    }

    .nube-borde3 {
        width: 60%;
    }

    /* FOOTER - ESTILO INDEX */
      footer {
        padding: 20px 60px 40px 60px;  /* Superior reducido, inferior igual */
        align-items: center;
        min-height: auto;
    }

    .footer-contenedor {
        align-items: center;
    }

    .mundo {
        width: 50%;
    }

    .imagen-mundo {
        max-width: 560px;
        margin-top: 0;
    }

    .columna-derecha {
        width: 60%;
        margin-right: 2%;
    }

    .newsletter h2 {
        font-size: 37px;
        margin-bottom: 16px;            /* Menos espacio debajo del título */
        text-align: left;
        white-space: nowrap;
    }

    .newsletter form {
        gap: 10px;
        margin-bottom: 40px;            /* Menos espacio debajo del formulario */
    }

    .newsletter input {
        padding: 18px 20px;
        width: 280px;
        font-size: 14px;
    }

    .newsletter .btn {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .sociales-footer {
        gap: 30px;
        margin-bottom: 110px;            /* Menos espacio antes del logo */
    }

    .social-item {
        gap: 10px;
    }

    .social-item p {
        font-size: 20px;
        margin: 0;
    }

    .social-item svg {
        width: 28px;
        height: 28px;
    }

    .logo-footer-contenedor {
        right: 30px;
        bottom: 30px;
    }

    .logo-footer {
        width: 480px;
    }

    .nube-borde {
        width: 100%;           /* Ancho relativo al contenedor */
        top: 58%;             /* Posición vertical */
             /* Si quieres más transparencia */
    }

    .nube-borde2 {
        width: 100%;
        top: 108%;
        transform: translateY(-50%);
    }

    .nube-borde3 {
        width: 80%;            /* Ya existía, pero puedes ajustarlo más */
        top: 40%;
       
    }
}

/* ===== MEDIA QUERY PARA CELULAR ===== */
@media (max-width: 768px) {
    /* HEADER */
    header {
        margin-top: -80px;
        padding-top: 80px;
    }

    .hamburger {
        display: flex;
    }

    /* Reestructuración del menú */
    .menu {
       
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 30px 15px !important; /* Ajusta el padding si es necesario */
        background: #ACEFF8; /* Fondo sólido en móvil */
        backdrop-filter: none;
    }

    .menu::after {
        display: none;
    }

    /* Primera fila: logo centrado */
    .menu-logo {
        text-align: center;
        margin-bottom: 10px;
    }

    .logo {
        width: 200px; /* Ajusta según necesites */
        margin: 0 auto;
    }

    /* Segunda fila: hamburguesa a la izquierda, sociales a la derecha */
    .menu-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .sociales {
        gap: 12px;
        margin: 0;
    }

    .sociales .icono {
        width: 32px;
        height: 32px;
    }

    /* Enlaces ocultos por defecto */
    .links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 15px 0 5px;
        gap: 12px;
        text-align: center;
    }

    .links a {
        font-size: 18px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    /* Clase para mostrar el menú (se activa con JS) */
    .links.show {
        display: flex;
    }
    .icono, #ingles {
        width: 35px;
        height: 35px;
    }

    .texto-header {
        left: 20px;
        right: 20px;
        top: 40%;
        text-align: center;
    }

    .texto-header h1 {
        font-size: 40px;
    }

    .texto-header span {
        font-size: 55px;
        display: block;
    }

    .sociales {
        justify-content: center;
    }

    /* HISTORIA */
    .historia {
        padding: 20px;
        margin-left: 0;
    }

    .historia-contenedor {
        flex-direction: column;
        gap: 30px;
    }

    .historia-texto {
        width: 100%;
        margin-top: 20px;
    }

    .historia-texto h2 {
        font-size: 45px;
        text-align: center;
    }

    .historia-texto p {
        font-size: 22px;
        text-align: center;
    }

    .historia-imagen {
        width: 80%;
        margin: 0 auto;
    }

    .nube-borde {
        top: 40%;
    }

    /* GALERÍA */
    .galeria {
        padding: 60px 0;
    }

    .fondo-azul {
        height: 40%;
    }

    .galeria-contenedor {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .galeria-contenedor img {
        width: 100%;
        height: auto;
        max-height: 500px;
    }

    /* COMO FUNCIONA */
    .como-funciona {
        padding: 60px 20px;
        min-height: auto;
        background-size: cover;
    }

    .como-contenedor {
        flex-direction: column;
        gap: 30px;
        padding-left: 0;
    }

    .como-imagen {
        width: 100%;
        justify-content: center;
    }

    .como-imagen img {
        max-width: 400px;
    }

    .como-derecha {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .como-derecha h3 {
        font-size: 35px;
        margin-bottom: 30px;
        text-align: center;
    }

    .lista-pasos li {
        gap: 15px;
        margin-bottom: 30px;
    }

    .icono-paso {
        width: 50px;
        height: 50px;
    }

    .lista-pasos span {
        font-size: 22px;
    }

    /* ESCALERA */
    .nubesescalera {
        padding: 60px 0;
    }

    .contenido-escalera {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .escalera {
        position: relative;
        width: 80%;
        left: auto;
        bottom: auto;
        margin: 0 auto;
    }

    .angel {
        position: relative;
        width: 60%;
        left: auto;
        top: auto;
        margin: 20px auto;
    }

    .texto-escalera {
        position: relative;
        right: auto;
        top: auto;
        max-width: 90%;
        margin: 20px auto;
        padding: 0 20px;
    }

    .texto-escalera p {
        font-size: 28px;
    }

    .btn-magico {
        padding: 15px 30px;
        font-size: 20px;
    }

    /* MOMENTOS ESPECIALES */
    .momentos-especiales {
        padding: 60px 0;
    }

    .titulo-momentos {
        font-size: 32px;
        padding: 0 20px;
    }

    .decoracion-momentos {
        font-size: 24px;
        letter-spacing: 8px;
        margin-bottom: 30px;
    }

    .carousel-wrapper {
        gap: 10px;
        padding: 0 10px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    .carousel-item img {
        height: 350px;
    }

    .nube-borde3 {
        width: 90%;
        top: 45%;
    }

    /* FOOTER */
    footer {
        padding: 40px 20px;
    }

    .footer-contenedor {
        flex-direction: column;
        gap: 30px;
    }

    .mundo {
        width: 100%;
        text-align: center;
    }

    .imagen-mundo {
        max-width: 300px;
        margin: 0 auto;
    }

    .columna-derecha {
        width: 100%;
        margin-right: 0;
        align-items: center;
    }

    .newsletter h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .newsletter form {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .newsletter input {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }

    .newsletter .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .sociales-footer {
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .social-item {
        justify-content: center;
        gap: 15px;
    }

    .social-item p {
        font-size: 16px;
    }

    .social-item svg {
        width: 30px;
        height: 30px;
    }

    .logo-footer-contenedor {
        position: static;
        text-align: center;
        margin-top: 20px;
    }

    .logo-footer {
        width: 220px;
    }

    .nube-borde, .nube-borde2, .nube-borde3 {
        display: none;
    }
}

/* ===== MEDIA QUERY PARA CELULARES PEQUEÑOS ===== */
@media (max-width: 480px) {
    .texto-header h1 {
        font-size: 32px;
    }

    .texto-header span {
        font-size: 45px;
    }

    .historia-texto h2 {
        font-size: 38px;
    }

    .historia-texto p {
        font-size: 18px;
    }

    .como-derecha h3 {
        font-size: 28px;
    }

    .lista-pasos span {
        font-size: 18px;
    }

    .texto-escalera p {
        font-size: 22px;
    }

    .btn-magico {
        padding: 12px 25px;
        font-size: 18px;
    }

    .titulo-momentos {
        font-size: 28px;
    }

    .carousel-item img {
        height: 280px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .newsletter h2 {
        font-size: 28px;
    }

    .logo-footer {
        width: 180px;
    }
}